﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using WenSkin.Forms;

namespace WenSkinTest
{
    public partial class Form3 : WenForm
    {
        public Form3()
        {
            InitializeComponent();
            this.wenProgressListBox1.Items.Add("1234");
        }

        private void WenButton1_Click(object sender, EventArgs e)
        {
            //var ss = WenConfig["SqlServer", "dfasdfsad"];
            //WenConfig.ShowDialog();

            var ssss = this.wenProgressListBox1.Items;

            ssss[1].Value = 30;
            Task.Run(async () =>
            {
                while (true)
                {
                    this.Invoke(() =>
                    {
                        ssss[1].Value += 5;
                    });             
                    await Task.Delay(500);
                }
            });


            //this.wenProgressListBox1.Items.Add("1234");
            //this.wenProgressListBox1.Items.Add("1234");
            //this.wenProgressListBox1.Items.Add("1234");
        }
        private WenSkin.WenConfig WenConfig=new WenSkin.WenConfig();

        private void WenToolStrip1_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {

        }
    }
}
